package com.boliq.lol.ui.news;

import android.view.View;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.boliq.lol.R;
import com.boliq.lol.adapter.NewsChessAdapter1;
import com.boliq.lol.adapter.NewsMyselfAdapter;
import com.boliq.lol.base.BaseFragment;
import com.boliq.lol.bean.NewsChessBean1;
import com.boliq.lol.bean.NewsMyselfBean;

public class NewsMyselfFragment extends BaseFragment {
    private RecyclerView mRecyclerView;
    private NewsMyselfAdapter myAdapter;
    @Override
    protected int rootLayout() {
        return R.layout.viwe_main_myself;
    }
    @Override
    protected void initView(View view) {
        mRecyclerView = view.findViewById(R.id.rv_content_list3);
    }
    @Override
    protected void initData(){
        NewsMyselfBean m1=new NewsMyselfBean(R.drawable.my_1,"英雄联盟",R.drawable.tx,"Genesis曦夜","守望之海|Lv135",R.drawable.my_2,R.drawable.my_3,R.drawable.my_3,R.drawable.my_3);
        NewsMyselfBean m2=new NewsMyselfBean(R.drawable.my_1,"英雄联盟",R.drawable.tx,"Genesis曦夜","守望之海|Lv135",R.drawable.my_2,R.drawable.my_3,R.drawable.my_3,R.drawable.my_3);
        myAdapter = new NewsMyselfAdapter();
        myAdapter.addData(m1);
        myAdapter.addData(m2);

    }
    @Override
    protected void bindEvent() {

    }
    @Override
    protected void bindData() {
        super.bindData();
        mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
        mRecyclerView.setAdapter(myAdapter);

    }
}
